export default {
    //inject: ['version'], //子组件接收数据，但是不是实时更新
    data(){ return{
        version: "v0.0"
    }},
    // 写了这么多，就是为了从主页获取 version 参数，该参数会被ajax更新一次。由后端 config.py 最终决定
    methods:{
        fetchVersion(){
            setTimeout(() => {
                this.version = window.version;
            }, 100);
        }
    },
    mounted() {
        this.fetchVersion();
    },


	template:`
    <div class="container">

        <h1>About</h1>
        <p>version: {{version}}</p>
        <p>dawnTodo.py is a deadline management system based on Flask, Vue3 and Sqlite3.</p>

        <p>You can folk me at <a target="_blank" href="https://gitee.com/dawnEve/dawnTodo.py">https://gitee.com/dawnEve/dawnTodo.py</a></p>
        


        <h2>Aim</h2>
        <h3>Streamline your workflows for maximum efficiency</h3>
        <p>Plan, manage, and track all your team's projects on one customizable platform.
        Select what you'd like to manage</p>


        <h2>同类产品</h2>
        <p>https://monday.com/lp/to-do-list/</p>
        <p>https://to-do.office.com/tasks/</p>
    </div>
    `
}
